﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="major_top.aspx.cs" Inherits="FineUI.Examples.major_top" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
        integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous" />
    <link href="JS/bootstrap.min.css" rel="stylesheet" />
    <style type="text/css">
        .drop1 {
            width: 160px;
        }

        .drop2 {
            width: 180px;
            margin-left:20px;
            margin-right:40px;
        }

        .btn1 {
            display: inline-block;
            padding: 6px 12px;
            margin-bottom: 0;
            font-size: 14px;
            font-weight: normal;
            line-height: 1.42857143;
            text-align: center;
            white-space: nowrap;
            vertical-align: middle;
            cursor: pointer;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            background-image: none;
            border: 1px solid transparent;
            border-radius: 4px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="console">
            <%--   <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            //ASP.NET中使用UpdatePanel实现局部异步刷新
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:DropDownList runat="server" ID="DropDownList1" AutoPostBack="True" OnSelectedIndexChanged="SelectProductTypeChange" />
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="SelectProductType" EventName="SelectedIndexChanged" />
                </Triggers>
            </asp:UpdatePanel>--%>
            <div style="margin-top:10px;">
                <asp:DropDownList CssClass="btn btn-default dropdown-toggle drop1" ID="DropDownList1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="SelectProductTypeChange">
                    <asp:ListItem Selected="True" Value=""></asp:ListItem>
                </asp:DropDownList>

                <asp:DropDownList CssClass="btn btn-default dropdown-toggle drop2" ID="DropDownList2" runat="server">
                    <asp:ListItem Value="">信息管理与信息系统</asp:ListItem>
                </asp:DropDownList>

                <asp:Button CssClass="btn btn-primary" ID="Button1" OnClick="selectKecheng" Text="查询专业计划表" runat="server" />
            </div>
            <hr />
            <div class="table-responsive">
                <table class="table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th>课程名称</th>
                            <th>课程类别</th>
                            <th>考核</th>
                            <th>学分</th>
                            <th>学时</th>
                            <th>实践</th>
                            <th>修改</th>
                            <th>删除</th>
                            <th>添加课程</th>
                        </tr>
                    </thead>

                    <asp:Repeater ID="repKecheng" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td><%#Eval("id") %></td>
                                <td><%#Eval("Kecheng_name") %></td>
                                <td><%#Eval("a") %></td>
                                <td><%#Eval("c") %></td>
                                <td><%#Eval("d") %></td>
                                <td><%#Eval("e") %></td>
                                <td><%#Eval("f") %></td>
                                <td><a class="btn btn-warning" href='major_update.aspx?kecheng_name=<%#Eval("kecheng_name") %>&a=<%#Eval("a") %>&c=<%#Eval("c") %>&d=<%#Eval("d") %>&e=<%#Eval("e") %>&f=<%#Eval("f") %>' target="bottom">修改</a></td>
                                <%--<td><asp:LinkButton ID="lbtnDel" OnClientClick="return confirm('您现在执行的是删除课程操作，是否继续?')" OnClick="lbtnDel_Click" CommandArgument='<%#Eval("id") %>' runat="server">删除</asp:LinkButton></td>--%>
                                <td>
                                    <asp:Button CssClass="btn btn-danger" ID="Button3" runat="server" Text="删除" CommandArgument='<%#Eval("id") %>' OnCommand="btn_del" /></td>
                                <td><a class="btn btn-primary" href='major_insertKeCheng.aspx?major_id=<%#Eval("major_id") %>' onclick="redict" target="_black">添加课程</a></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
    </form>
    <script src="JS/jquery-3.3.1.min.js"></script>
    <script src="JS/bootstrap.min.js"></script>
</body>
</html>
